<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
	<th:block th:include="include :: header('修改鸡舍月报')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-ncChickenMonthCensus-edit" th:object="${ncChickenMonthCensus}">
            <input id="cenusId" name="cenusId" th:field="*{cenusId}"  type="hidden">
			<div class="form-group">	
				<label class="col-sm-3 control-label">上月鸡库存：</label>
				<div class="col-sm-8">
					<input id="lastChickenStack" name="lastChickenStack" th:field="*{lastChickenStack}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">上月饲料库存：</label>
				<div class="col-sm-8">
					<input id="lastFeedStack" name="lastFeedStack" th:field="*{lastFeedStack}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">本月增加鸡数量：</label>
				<div class="col-sm-8">
					<input id="chickenStack" name="chickenStack" th:field="*{chickenStack}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">本月增加饲料数量：</label>
				<div class="col-sm-8">
					<input id="feedStack" name="feedStack" th:field="*{feedStack}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">直供：</label>
				<div class="col-sm-8">
					<input id="zhiChicken" name="zhiChicken" th:field="*{zhiChicken}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">内销：</label>
				<div class="col-sm-8">
					<input id="neiChicken" name="neiChicken" th:field="*{neiChicken}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">盘存：</label>
				<div class="col-sm-8">
					<input id="stack" name="stack" th:field="*{stack}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">：</label>
				<div class="col-sm-8">
					<input id="dataTime" name="dataTime" th:field="*{dataTime}" class="form-control" type="text">
				</div>
			</div>
		</form>
    </div>
    <div th:include="include::footer"></div>
    <script type="text/javascript">
		var prefix = ctx + "system/ncChickenMonthCensus";
		$("#form-ncChickenMonthCensus-edit").validate({
			rules:{
				xxxx:{
					required:true,
				},
			},
			focusCleanup: true
		});
		
		function submitHandler() {
	        if ($.validate.form()) {
	            $.operate.save(prefix + "/edit", $('#form-ncChickenMonthCensus-edit').serialize());
	        }
	    }
	</script>
</body>
</html>
